#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void Multiplicationtable(int a)
{
	for (int i = 1; i <= a; i++)
	{
		for (int j = 1; j <=i; j++)
		{
			printf("%dX%d=%d   ", i, j, i * j);
		}
		printf("\n");
	}
}
int main()
{
	int x = 0;
	scanf("%d", &x);
	Multiplicationtable(x);
	return 0;
}